﻿using MediatR;
using S.Common.ApiResult;
using S.Parturition.Read.API.Dto;

namespace S.Parturition.Read.API.Application.Command
{
    public class GetParturitionListCommand : IRequest<ApiResult<List<ParturitionListDto>>>
    {

        public GetParturitionListCommand(string? stateDate, string? endDate, string? monthEITag, int userId, string? turnOutBuild, string? shiftToBuild, string? broodNumber, int pageIndex, int pageSize)
        {
            StateDate = stateDate;
            EndDate = endDate;
            MonthEITag = monthEITag;
            UserId = userId;
            TurnOutBuild = turnOutBuild;
            ShiftToBuild = shiftToBuild;
            BroodNumber = broodNumber;
            PageIndex = pageIndex;
            PageSize = pageSize;
        }

        /// <summary>
        /// 开始时间
        /// </summary>
        public string? StateDate { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        public string? EndDate { get; set; }

        /// <summary>
        /// 种母耳号
        /// </summary>
        public string? MonthEITag { get; set; }

        /// <summary>
        /// 当前栋舍
        /// </summary>
        public string? TurnOutBuild { get; set; }

        /// <summary>
        /// 转入栋舍
        /// </summary>
        public string? ShiftToBuild { get; set; }

        /// <summary>
        /// 窝号
        /// </summary>
        public string? BroodNumber { get; set; }

        /// <summary>
        /// 负责人
        /// </summary>
        public int UserId { get; set; }

        /// <summary>
        /// 当前页数
        /// </summary>
        public int PageIndex { get; set; }

        /// <summary>
        /// 每页显示条数
        /// </summary>
        public int PageSize { get; set; }

    }
}
